package main

import (
	_ "github.com/xiaomeng79/go-common-tools/routers"

	"github.com/astaxie/beego"
	"github.com/xiaomeng79/go-common-tools/models"
)

func main() {
	//if beego.BConfig.RunMode == "dev" {
		beego.BConfig.WebConfig.DirectoryIndex = true
		beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
	//}
	//初始化 注册model
	models.Init()

	beego.Run()
}
